package net.atos.spring.library;

import javax.persistence.Entity;

@Entity
public class Magazine extends LibraryItem {

    private String title;
    private String publisher;
    private String issueNb;
    private Integer year;

    protected Magazine() {
	super();
    }

    public Magazine(String locationRow, String location, String title, String publisher, String issueNb, Integer year) {
	super(locationRow, location);
	this.title = title;
	this.publisher = publisher;
	this.issueNb = issueNb;
	this.year = year;
    }

    @Override
    public String toString() {
	return "Magazine [title=" + title + ", publisher=" + publisher + ", issueNb=" + issueNb + ", year=" + year + ", toString()=" + super.toString() + "]";
    }

    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    public String getPublisher() {
	return publisher;
    }

    public void setPublisher(String publisher) {
	this.publisher = publisher;
    }

    public String getIssueNb() {
	return issueNb;
    }

    public void setIssueNb(String issueNb) {
	this.issueNb = issueNb;
    }

    public Integer getYear() {
	return year;
    }

    public void setYear(Integer year) {
	this.year = year;
    }
}
